package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbReplenishService;
import com.gtw.modules.dao.TbReplenishDao;
import com.gtw.modules.entity.TbReplenish;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wuye on 2018/3/23.
 */
@Service
public class TbReplenishServiceImpl implements TbReplenishService {

    @Autowired
    private TbReplenishDao tbReplenishDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbReplenishDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbReplenish record) {
        return tbReplenishDao.insert(record);
    }

    @Override
    public int insertSelective(TbReplenish record) {
        return tbReplenishDao.insertSelective(record);
    }

    @Override
    public TbReplenish selectByPrimaryKey(Integer id) {
        return tbReplenishDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbReplenish record) {
        return tbReplenishDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbReplenish record) {
        return tbReplenishDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbReplenish> queryByUserid(Integer userid) {
        return tbReplenishDao.queryByUserid(userid);
    }
}
